home *** CD-ROM | disk | FTP | other *** search
- unit Infou;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls;
-
- type
- TForm1 = class(TForm)
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- Label5: TLabel;
- Label6: TLabel;
- Label7: TLabel;
- Label8: TLabel;
- Label9: TLabel;
- Label10: TLabel;
- Label11: TLabel;
- Label12: TLabel;
- Label13: TLabel;
- Label14: TLabel;
- Label15: TLabel;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.FormCreate(Sender: TObject);
- const
- CCSig: String[4] = ' ';
- var
- CCSigNum: Longint;
- begin
- Label1.Caption := Label1.Caption + IntToHex(DSeg, 4);
- Label2.Caption := Label2.Caption + Format('%x:%x', [SSeg, SPtr]);
- Label3.Caption := Label3.Caption + IntToHex(CSeg, 4);
- Label4.Caption := Label4.Caption + IntToHex(MemL[DSeg:0], 8);
- Label5.Caption := Label5.Caption + IntToStr(MemW[DSeg:4]);
- Label6.Caption := Label6.Caption + IntToHex(MemW[DSeg:6], 4);
- if MemW[DSeg:8] = 0 then
- Label7.Caption := Label7.Caption + 'none'
- else
- Label7.Caption := Label7.Caption + 'DS:$' + IntToHex(MemW[DSeg:8], 4);
- Label8.Caption := Label8.Caption + IntToHex(MemW[DSeg:$A], 4);
- Label9.Caption := Label9.Caption + IntToHex(MemW[DSeg:$C], 4);
- Label10.Caption := Label10.Caption + IntToHex(MemW[DSeg:$E], 4);
- Label11.Caption := Label11.Caption + Format('%p', [Pointer(MemL[DSeg:$20])]);
- Label12.Caption := Label12.Caption + Format('%p', [Pointer(MemL[DSeg:$24])]);
- CCSigNum := MemL[DSeg:$28];
- Move(CCSigNum, CCSig[1], SizeOf(CCSigNum));
- Label13.Caption := Label13.Caption + CCSig;
- Label14.Caption := Label14.Caption + IntToHex(MemW[DSeg:$2C], 4);
- Label15.Caption := Label15.Caption + IntToHex(MemW[DSeg:$2E], 4);
-
- end;
-
- end.
-